package com.eastfair.venueservice.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eastfair.boot.mapper.SuperMapper;
import com.eastfair.venuebooking.entity.Exhibition;
import com.eastfair.venueservice.entity.ExhibitionManage;
import com.eastfair.venueservice.vo.ExhibitionManageVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 综合服务展会
 * </p>
 *
 * @author linan
 * @date 2022-07-15
 */
@Repository
public interface ExhibitionManageMapper extends SuperMapper<ExhibitionManage> {

    /**
     * queryServiceProviderSpaceId
     * @param exhibitionManageId
     * @param serviceProviderId
     * @return
     */
    List<Long> queryServiceProviderSpaceId(@Param("exhibitionManageId") Long exhibitionManageId, @Param("serviceProviderId") Long serviceProviderId);

    /**
     * 查询近期开展的展会列表.
     *
     * @param page         the page
     * @param queryWrapper the query wrapper
     * @return the list
     */
    Page<ExhibitionManageVO> listLatestExhibition(IPage<ExhibitionManage> page, @Param(Constants.WRAPPER) QueryWrapper<ExhibitionManage> queryWrapper);
}
